import Vue from "vue";
import Router from "vue-router";
import Home from "../components/Home.vue";
// 导入可访问的组件
Vue.use(Router);
export default new Router({
    // 移除url中的#
    mode: "history",
    routes:[
        // 路由列表
        {
            name:"Home",
            path:"/",
            component:Home,
          },
           {
            name:"Home",
            path:"/home",
            component:Home,
          },
    ]
});